package sin.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import sin.dao.StudentDao;
import sin.entity.Student;
import sin.service.StudentService;

@Component("studentService")
public class StudentServiceImpl implements StudentService {

	@Autowired
	private StudentDao studentDao;

	public Student getById(String id) {
		return studentDao.getById(id);
	}

	public void saveStudent(Student student) {
		studentDao.saveStudent(student);
	}

	public void deleteById(String id) {
		studentDao.deleteById(id);
	}
}
